package router

import (
	"github.com/gin-gonic/gin"
	"goods_bff/api/banners"
)

func InitBannerRouter(router *gin.Engine) {
	BannerRouter := router.Group("g/v1/banners")
	{
		BannerRouter.GET("", banners.List)          // 轮播图列表页
		BannerRouter.DELETE("/:id", banners.Delete) // 删除轮播图
		BannerRouter.POST("", banners.New)          //新建轮播图
		BannerRouter.PUT("/:id", banners.Update)    //修改轮播图信息
	}
}
